/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.great.multimidia;

import br.great.beans.Precision;
import br.great.beans.TagsData1;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import org.apache.sanselan.ImageReadException;
import org.apache.sanselan.ImageWriteException;

/**
 *
 * @author Drazzco
 */
public class Interface2 extends javax.swing.JFrame {

    /**
     * Creates new form Interface2
     */
    public Interface2() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel6 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jToggleButton1 = new javax.swing.JToggleButton();
        jToggleButton2 = new javax.swing.JToggleButton();
        jToggleButton3 = new javax.swing.JToggleButton();
        jToggleButton4 = new javax.swing.JToggleButton();
        jToggleButton5 = new javax.swing.JToggleButton();
        jToggleButton6 = new javax.swing.JToggleButton();
        jToggleButton7 = new javax.swing.JToggleButton();
        jToggleButton8 = new javax.swing.JToggleButton();
        jToggleButton9 = new javax.swing.JToggleButton();
        jToggleButton10 = new javax.swing.JToggleButton();
        jLabel3 = new javax.swing.JLabel();
        jToggleButton21 = new javax.swing.JToggleButton();
        jToggleButton22 = new javax.swing.JToggleButton();
        jToggleButton23 = new javax.swing.JToggleButton();
        jToggleButton24 = new javax.swing.JToggleButton();
        jToggleButton25 = new javax.swing.JToggleButton();
        jToggleButton26 = new javax.swing.JToggleButton();
        jToggleButton27 = new javax.swing.JToggleButton();
        jToggleButton28 = new javax.swing.JToggleButton();
        jToggleButton29 = new javax.swing.JToggleButton();
        jToggleButton30 = new javax.swing.JToggleButton();
        jToggleButton11 = new javax.swing.JToggleButton();
        jToggleButton12 = new javax.swing.JToggleButton();
        jToggleButton13 = new javax.swing.JToggleButton();
        jToggleButton14 = new javax.swing.JToggleButton();
        jToggleButton15 = new javax.swing.JToggleButton();
        jToggleButton16 = new javax.swing.JToggleButton();
        jToggleButton17 = new javax.swing.JToggleButton();
        jToggleButton18 = new javax.swing.JToggleButton();
        jToggleButton19 = new javax.swing.JToggleButton();
        jToggleButton20 = new javax.swing.JToggleButton();
        jToggleButton31 = new javax.swing.JToggleButton();
        jToggleButton32 = new javax.swing.JToggleButton();
        jToggleButton33 = new javax.swing.JToggleButton();
        jToggleButton34 = new javax.swing.JToggleButton();
        jToggleButton35 = new javax.swing.JToggleButton();
        jToggleButton36 = new javax.swing.JToggleButton();
        jToggleButton37 = new javax.swing.JToggleButton();
        jToggleButton38 = new javax.swing.JToggleButton();
        jToggleButton39 = new javax.swing.JToggleButton();
        jToggleButton40 = new javax.swing.JToggleButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("ContextPicasa");
        setBackground(new java.awt.Color(79, 79, 79));
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setMinimumSize(new java.awt.Dimension(1200, 600));
        setPreferredSize(new java.awt.Dimension(1200, 600));
        setResizable(false);
        getContentPane().setLayout(new java.awt.GridBagLayout());

        jPanel1.setBackground(new java.awt.Color(79, 79, 79));
        jPanel1.setLayout(new java.awt.GridBagLayout());

        jLabel1.setText("Context Picasa");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 4;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 4, 0);
        jPanel1.add(jLabel1, gridBagConstraints);

        jPanel2.setLayout(new java.awt.GridBagLayout());
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 21;
        gridBagConstraints.gridheight = 16;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        jPanel2.add(jLabel4, gridBagConstraints);

        jTabbedPane1.addTab("Foto Selecionada", jPanel2);

        jPanel6.setLayout(new java.awt.GridBagLayout());
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel5, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel6, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 10;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel7, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 15;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel8, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel9, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel10, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 10;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel11, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 15;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel12, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel13, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel14, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 10;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel15, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 15;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel16, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel17, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel18, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 10;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel19, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 15;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.gridheight = 4;
        gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
        jPanel6.add(jLabel20, gridBagConstraints);

        jScrollPane1.setViewportView(jPanel6);

        jTabbedPane1.addTab("Todas as Fotos", jScrollPane1);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.gridwidth = 12;
        gridBagConstraints.gridheight = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(4, 2, 4, 7);
        jPanel1.add(jTabbedPane1, gridBagConstraints);

        jButton1.setText("Anterior");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 16;
        gridBagConstraints.insets = new java.awt.Insets(3, 2, 3, 10);
        jPanel1.add(jButton1, gridBagConstraints);

        jButton2.setText("Próxima");
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton2MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 9;
        gridBagConstraints.gridy = 16;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
        gridBagConstraints.insets = new java.awt.Insets(3, 150, 3, 5);
        jPanel1.add(jButton2, gridBagConstraints);

        jPanel5.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 4, true));
        jPanel5.setLayout(new java.awt.GridBagLayout());

        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setText("Tags de Maior Precisão");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipadx = 14;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
        gridBagConstraints.insets = new java.awt.Insets(2, 4, 4, 2);
        jPanel5.add(jLabel2, gridBagConstraints);

        jToggleButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
        jToggleButton1.setIconTextGap(0);
        jToggleButton1.setMaximumSize(new java.awt.Dimension(136, 34));
        jToggleButton1.setMinimumSize(new java.awt.Dimension(136, 34));
        jToggleButton1.setPreferredSize(new java.awt.Dimension(136, 34));
        jToggleButton1.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/br/great/multimidia/BotaoInativo.png"))); // NOI18N
        jToggleButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton1MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton1, gridBagConstraints);

        jToggleButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/great/multimidia/BotaoInativo.png"))); // NOI18N
        jToggleButton2.setMaximumSize(new java.awt.Dimension(136, 34));
        jToggleButton2.setMinimumSize(new java.awt.Dimension(136, 34));
        jToggleButton2.setPreferredSize(new java.awt.Dimension(136, 34));
        jToggleButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton2MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton2, gridBagConstraints);

        jToggleButton3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton3MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton3, gridBagConstraints);

        jToggleButton4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton4MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton4, gridBagConstraints);

        jToggleButton5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton5MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton5, gridBagConstraints);

        jToggleButton6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton6MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton6, gridBagConstraints);

        jToggleButton7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton7MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton7, gridBagConstraints);

        jToggleButton8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton8MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton8, gridBagConstraints);

        jToggleButton9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton9MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton9, gridBagConstraints);

        jToggleButton10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton10MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton10, gridBagConstraints);

        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel3.setText("Tags de Média Precisão");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 2);
        jPanel5.add(jLabel3, gridBagConstraints);

        jToggleButton21.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton21MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton21, gridBagConstraints);

        jToggleButton22.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton22MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton22, gridBagConstraints);

        jToggleButton23.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton23MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 13;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton23, gridBagConstraints);

        jToggleButton24.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton24MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 13;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton24, gridBagConstraints);

        jToggleButton25.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton25MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 14;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton25, gridBagConstraints);

        jToggleButton26.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton26MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 14;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton26, gridBagConstraints);

        jToggleButton27.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton27MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 15;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton27, gridBagConstraints);

        jToggleButton28.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton28MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 15;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton28, gridBagConstraints);

        jToggleButton29.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton29MouseClicked(evt);
            }
        });
        jToggleButton29.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jToggleButton29ActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 16;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton29, gridBagConstraints);

        jToggleButton30.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton30MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 16;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton30, gridBagConstraints);

        jToggleButton11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton11MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton11, gridBagConstraints);

        jToggleButton12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton12MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton12, gridBagConstraints);

        jToggleButton13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton13MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton13, gridBagConstraints);

        jToggleButton14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton14MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton14, gridBagConstraints);

        jToggleButton15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton15MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton15, gridBagConstraints);

        jToggleButton16.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton16MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton16, gridBagConstraints);

        jToggleButton17.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton17MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton17, gridBagConstraints);

        jToggleButton18.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton18MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton18, gridBagConstraints);

        jToggleButton19.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton19MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton19, gridBagConstraints);

        jToggleButton20.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton20MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton20, gridBagConstraints);

        jToggleButton31.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton31MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 17;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton31, gridBagConstraints);

        jToggleButton32.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton32MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 17;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton32, gridBagConstraints);

        jToggleButton33.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton33MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 18;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton33, gridBagConstraints);

        jToggleButton34.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton34MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 18;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton34, gridBagConstraints);

        jToggleButton35.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton35MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 19;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton35, gridBagConstraints);

        jToggleButton36.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton36MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 19;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton36, gridBagConstraints);

        jToggleButton37.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton37MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 20;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton37, gridBagConstraints);

        jToggleButton38.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton38MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 20;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton38, gridBagConstraints);

        jToggleButton39.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton39MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 21;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
        jPanel5.add(jToggleButton39, gridBagConstraints);

        jToggleButton40.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jToggleButton40MouseClicked(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 21;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
        jPanel5.add(jToggleButton40, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 13;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 7;
        gridBagConstraints.gridheight = 16;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 2);
        jPanel1.add(jPanel5, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 52;
        gridBagConstraints.ipady = 15;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        getContentPane().add(jPanel1, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jToggleButton29ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jToggleButton29ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jToggleButton29ActionPerformed

    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
        before = true;
        if(next == true){
            if(counter == 0){
                int n = icon25.size()-1;
                beforeImage(n);
                next = false;
            }
            else{
                beforeImage(counter - 1);
                next = false;
            }            
        }
        else{
            beforeImage(counter);
        }                        
    }//GEN-LAST:event_jButton1MouseClicked

    private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseClicked
       next = true;
        if(before == true){
            if(counter == icon25.size()-1){
                int n = 0;
                nextImage(n);
                before = false;
            }
            else{
                nextImage(counter + 1);
                before = false;
            }            
        } 
        else{
            nextImage(counter);
        }                      
    }//GEN-LAST:event_jButton2MouseClicked

    private void jToggleButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton1MouseClicked
           if(validateHigh.get(0) == false){
            validateHigh.set(0, true);
        }
        else{
            validateHigh.set(0, false);
        }
    }//GEN-LAST:event_jToggleButton1MouseClicked

    private void jToggleButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton2MouseClicked
        if(validateHigh.get(1) == false){
            validateHigh.set(1, true);
        }
        else{
            validateHigh.set(1, false);
        }
    }//GEN-LAST:event_jToggleButton2MouseClicked

    private void jToggleButton3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton3MouseClicked
        if(validateHigh.get(2) == false){
            validateHigh.set(2, true);
        }
        else{
            validateHigh.set(2, false);
        }
    }//GEN-LAST:event_jToggleButton3MouseClicked

    private void jToggleButton4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton4MouseClicked
        if(validateHigh.get(3) == false){
            validateHigh.set(3, true);
        }
        else{
            validateHigh.set(3, false);
        }
    }//GEN-LAST:event_jToggleButton4MouseClicked

    private void jToggleButton5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton5MouseClicked
        if(validateHigh.get(4) == false){
            validateHigh.set(4, true);
        }
        else{
            validateHigh.set(4, false);
        }
    }//GEN-LAST:event_jToggleButton5MouseClicked

    private void jToggleButton6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton6MouseClicked
        if(validateHigh.get(5) == false){
            validateHigh.set(5, true);
        }
        else{
            validateHigh.set(5, false);
        }
    }//GEN-LAST:event_jToggleButton6MouseClicked

    private void jToggleButton7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton7MouseClicked
        if(validateHigh.get(6) == false){
            validateHigh.set(6, true);
        }
        else{
            validateHigh.set(6, false);
        }
    }//GEN-LAST:event_jToggleButton7MouseClicked

    private void jToggleButton8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton8MouseClicked
        if(validateHigh.get(7) == false){
            validateHigh.set(7, true);
        }
        else{
            validateHigh.set(7, false);
        }
    }//GEN-LAST:event_jToggleButton8MouseClicked

    private void jToggleButton9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton9MouseClicked
        if(validateHigh.get(8) == false){
            validateHigh.set(8, true);
        }
        else{
            validateHigh.set(8, false);
        }
    }//GEN-LAST:event_jToggleButton9MouseClicked

    private void jToggleButton10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton10MouseClicked
        if(validateHigh.get(9) == false){
            validateHigh.set(9, true);
        }
        else{
            validateHigh.set(9, false);
        }
    }//GEN-LAST:event_jToggleButton10MouseClicked

    private void jToggleButton11MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton11MouseClicked
        if(validateHigh.get(10) == false){
            validateHigh.set(10, true);
        }
        else{
            validateHigh.set(10, false);
        }
    }//GEN-LAST:event_jToggleButton11MouseClicked

    private void jToggleButton12MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton12MouseClicked
        if(validateHigh.get(11) == false){
            validateHigh.set(11, true);
        }
        else{
            validateHigh.set(11, false);
        }
    }//GEN-LAST:event_jToggleButton12MouseClicked

    private void jToggleButton13MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton13MouseClicked
        if(validateHigh.get(12) == false){
            validateHigh.set(12, true);
        }
        else{
            validateHigh.set(12, false);
        }
    }//GEN-LAST:event_jToggleButton13MouseClicked

    private void jToggleButton14MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton14MouseClicked
        if(validateHigh.get(13) == false){
            validateHigh.set(13, true);
        }
        else{
            validateHigh.set(13, false);
        }
    }//GEN-LAST:event_jToggleButton14MouseClicked

    private void jToggleButton15MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton15MouseClicked
        if(validateHigh.get(14) == false){
            validateHigh.set(14, true);
        }
        else{
            validateHigh.set(14, false);
        }
    }//GEN-LAST:event_jToggleButton15MouseClicked

    private void jToggleButton16MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton16MouseClicked
        if(validateHigh.get(15) == false){
            validateHigh.set(15, true);
        }
        else{
            validateHigh.set(15, false);
        }
    }//GEN-LAST:event_jToggleButton16MouseClicked

    private void jToggleButton17MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton17MouseClicked
        if(validateHigh.get(16) == false){
            validateHigh.set(16, true);
        }
        else{
            validateHigh.set(16, false);
        }
    }//GEN-LAST:event_jToggleButton17MouseClicked

    private void jToggleButton18MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton18MouseClicked
        if(validateHigh.get(17) == false){
            validateHigh.set(17, true);
        }
        else{
            validateHigh.set(17, false);
        }
    }//GEN-LAST:event_jToggleButton18MouseClicked

    private void jToggleButton19MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton19MouseClicked
        if(validateHigh.get(18) == false){
            validateHigh.set(18, true);
        }
        else{
            validateHigh.set(18, false);
        }
    }//GEN-LAST:event_jToggleButton19MouseClicked

    private void jToggleButton20MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton20MouseClicked
        if(validateHigh.get(19) == false){
            validateHigh.set(19, true);
        }
        else{
            validateHigh.set(19, false);
        }
    }//GEN-LAST:event_jToggleButton20MouseClicked

    private void jToggleButton21MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton21MouseClicked
        if(validateMedium.get(0) == false){
            validateMedium.set(0, true);
        }
        else{
            validateMedium.set(0, false);
        }
    }//GEN-LAST:event_jToggleButton21MouseClicked

    private void jToggleButton22MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton22MouseClicked
        if(validateMedium.get(1) == false){
            validateMedium.set(1, true);
        }
        else{
            validateMedium.set(1, false);
        }
    }//GEN-LAST:event_jToggleButton22MouseClicked

    private void jToggleButton23MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton23MouseClicked
        if(validateMedium.get(2) == false){
            validateMedium.set(2, true);
        }
        else{
            validateMedium.set(2, false);
        }
    }//GEN-LAST:event_jToggleButton23MouseClicked

    private void jToggleButton24MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton24MouseClicked
        if(validateMedium.get(3) == false){
            validateMedium.set(3, true);
        }
        else{
            validateMedium.set(3, false);
        }
    }//GEN-LAST:event_jToggleButton24MouseClicked

    private void jToggleButton25MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton25MouseClicked
        if(validateMedium.get(4) == false){
            validateMedium.set(4, true);
        }
        else{
            validateMedium.set(4, false);
        }
    }//GEN-LAST:event_jToggleButton25MouseClicked

    private void jToggleButton26MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton26MouseClicked
        if(validateMedium.get(5) == false){
            validateMedium.set(5, true);
        }
        else{
            validateMedium.set(5, false);
        }
    }//GEN-LAST:event_jToggleButton26MouseClicked

    private void jToggleButton27MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton27MouseClicked
        if(validateMedium.get(6) == false){
            validateMedium.set(6, true);
        }
        else{
            validateMedium.set(6, false);
        }
    }//GEN-LAST:event_jToggleButton27MouseClicked

    private void jToggleButton28MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton28MouseClicked
        if(validateMedium.get(7) == false){
            validateMedium.set(7, true);
        }
        else{
            validateMedium.set(7, false);
        }
    }//GEN-LAST:event_jToggleButton28MouseClicked

    private void jToggleButton29MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton29MouseClicked
        if(validateMedium.get(8) == false){
            validateMedium.set(8, true);
        }
        else{
            validateMedium.set(8, false);
        }
    }//GEN-LAST:event_jToggleButton29MouseClicked

    private void jToggleButton30MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton30MouseClicked
        if(validateMedium.get(9) == false){
            validateMedium.set(9, true);
        }
        else{
            validateMedium.set(9, false);
        }
    }//GEN-LAST:event_jToggleButton30MouseClicked

    private void jToggleButton31MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton31MouseClicked
        if(validateMedium.get(10) == false){
            validateMedium.set(10, true);
        }
        else{
            validateMedium.set(10, false);
        }
    }//GEN-LAST:event_jToggleButton31MouseClicked

    private void jToggleButton32MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton32MouseClicked
        if(validateMedium.get(11) == false){
            validateMedium.set(11, true);
        }
        else{
            validateMedium.set(11, false);
        }
    }//GEN-LAST:event_jToggleButton32MouseClicked

    private void jToggleButton33MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton33MouseClicked
        if(validateMedium.get(12) == false){
            validateMedium.set(12, true);
        }
        else{
            validateMedium.set(12, false);
        }
    }//GEN-LAST:event_jToggleButton33MouseClicked

    private void jToggleButton34MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton34MouseClicked
        if(validateMedium.get(13) == false){
            validateMedium.set(13, true);
        }
        else{
            validateMedium.set(13, false);
        }
    }//GEN-LAST:event_jToggleButton34MouseClicked

    private void jToggleButton35MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton35MouseClicked
        if(validateMedium.get(14) == false){
            validateMedium.set(14, true);
        }
        else{
            validateMedium.set(14, false);
        }
    }//GEN-LAST:event_jToggleButton35MouseClicked

    private void jToggleButton36MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton36MouseClicked
        if(validateMedium.get(15) == false){
            validateMedium.set(15, true);
        }
        else{
            validateMedium.set(15, false);
        }
    }//GEN-LAST:event_jToggleButton36MouseClicked

    private void jToggleButton37MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton37MouseClicked
        if(validateMedium.get(16) == false){
            validateMedium.set(16, true);
        }
        else{
            validateMedium.set(16, false);
        }
    }//GEN-LAST:event_jToggleButton37MouseClicked

    private void jToggleButton38MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton38MouseClicked
        if(validateMedium.get(17) == false){
            validateMedium.set(17, true);
        }
        else{
            validateMedium.set(17, false);
        }
    }//GEN-LAST:event_jToggleButton38MouseClicked

    private void jToggleButton39MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton39MouseClicked
        if(validateMedium.get(18) == false){
            validateMedium.set(18, true);
        }
        else{
            validateMedium.set(18, false);
        }
    }//GEN-LAST:event_jToggleButton39MouseClicked

    private void jToggleButton40MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jToggleButton40MouseClicked
        if(validateMedium.get(19) == false){
            validateMedium.set(19, true);
        }
        else{
            validateMedium.set(19, false);
        }
    }//GEN-LAST:event_jToggleButton40MouseClicked
public void nextImage(int n){
    if(vality.get(n) == true){
            if(counter == icon25.size()-1){
                counter = 0;
            }
            else{
               counter++; 
            }
            Interface2 it3 = new Interface2();
            it3.setIcon25(icon25);
            it3.setIcon75(icon75);
            it3.setValidateHigh(validateHigh);
            it3.setValidateMedium(validateMedium);
            it3.setVality(vality);
            it3.setCounter(counter);
            it3.setIconjLabel4(icon75.get(counter));
            it3.setBefore(before);
            it3.setNext(next);
//            Principal.setarFotos(it3, icon25);
            it3.invjLabel3();
            it3.setTextjLabel2();
            it3.setColorjLabel2();
//            Principal.setarTags(it3, highPrecision, mediumPrecision);
            this.setVisible(false);
            it3.setVisible(true);
        }
        else{
                boolean checkHigh = false;
                boolean checkMedium = false;
                for(int i=0; i < validateHigh.size(); i++){
                    if(validateHigh.get(i) == true){
                        checkHigh = true;
                    }
                }
                
                    for(int i=0; i < validateMedium.size(); i++){
                        if(validateMedium.get(i) == true){
                            checkMedium = true;
                    }                
                }
         if(checkMedium == false && checkHigh == false){
              if(counter == icon25.size()-1){
                counter = 0;
            }
            else{
               counter++; 
            } 
            Interface2 it3 = new Interface2();
            it3.setIcon25(icon25);
            it3.setIcon75(icon75);
//            it3.setValidateHigh(Principal.bl);
//            it3.setValidateMedium(Principal.bl);
            it3.setVality(vality);
            it3.setCounter(counter);
            it3.setIconjLabel4(icon75.get(counter));
            it3.setBefore(before);
            it3.setNext(next);
//            Principal.setarFotos(it3, icon25);
            
            Principal.wordsHigh = new ArrayList<ArrayList<String>>();
            Principal.wordsMedium = new ArrayList<ArrayList<String>>();
            
            Principal.ordenar(highPrecision, mediumPrecision, counter);
//            Principal.setarTags(it3, highPrecision, mediumPrecision);
            Principal.setarWords(highPrecision, mediumPrecision);
            
            highPrecision = new ArrayList<Precision>();
            mediumPrecision = new ArrayList<Precision>();           
            
            this.setVisible(false);
            it3.setVisible(true);
                }
         else if(checkHigh == true || checkMedium == true){                        
            for(int i=0; i < validateHigh.size(); i++){
                if(validateHigh.get(i) == true){
                    wordsIPTC.add(Principal.wordsHigh.get(0).get(i));
                    validateHigh.set(i, false);
                }
            }
            for(int i=0; i < validateMedium.size(); i++){
                if(validateMedium.get(i) == true){
                    wordsIPTC.add(Principal.wordsMedium.get(0).get(i));
                    validateMedium.set(i, false);
                }
            }           
            
            try {
                Principal.photoIPTC.get(counter).addIPTCKeyword(wordsIPTC);
            } catch (ImageReadException ex) {
                Logger.getLogger(Interface2.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                Logger.getLogger(Interface2.class.getName()).log(Level.SEVERE, null, ex);
            } catch (ImageWriteException ex) {
                Logger.getLogger(Interface2.class.getName()).log(Level.SEVERE, null, ex);
            }
            
            wordsIPTC = new ArrayList<String>();
            vality.set(counter, true);
            try {
                        Principal.fotoValidada(icon25, counter);
                    } catch (IOException ex) {
                        Logger.getLogger(Interface2.class.getName()).log(Level.SEVERE, null, ex);
                    }
            if(counter == icon25.size()-1){
                counter = 0;
            }
            else{
               counter++; 
            } 
            Interface2 it3 = new Interface2();
            it3.setIcon25(icon25);
            it3.setIcon75(icon75);
//            it3.setValidateHigh(Principal.bl);
//            it3.setValidateMedium(Principal.bl);
            it3.setVality(vality);
            it3.setCounter(counter);
            it3.setIconjLabel4(icon75.get(counter));
            it3.setBefore(before);
            it3.setNext(next);
//            Principal.setarFotos(it3, icon25);
            
            Principal.wordsHigh = new ArrayList<ArrayList<String>>();
            Principal.wordsMedium = new ArrayList<ArrayList<String>>();
            
            Principal.ordenar(highPrecision, mediumPrecision, counter);
//            Principal.setarTags(it3, highPrecision, mediumPrecision);
            Principal.setarWords(highPrecision, mediumPrecision);
                        
            highPrecision = new ArrayList<Precision>();
            mediumPrecision = new ArrayList<Precision>();
                    
            this.setVisible(false);
            it3.setVisible(true);
        }
            }   
}

public void beforeImage(int n){
    if(vality.get(n) == true){
            if(counter == 0){
                counter = icon25.size()-1;
            }
            else{
               counter--; 
            } 
            Interface2 it3 = new Interface2();
            it3.setIcon25(icon25);
            it3.setIcon75(icon75);
            it3.setValidateHigh(validateHigh);
            it3.setValidateMedium(validateMedium);
            it3.setVality(vality);
            it3.setCounter(counter);
            it3.setIconjLabel4(icon75.get(counter));
            it3.setBefore(before);
            it3.setNext(next);
//            Principal.setarFotos(it3, icon25);
            it3.invjLabel3();
            it3.setTextjLabel2();
            it3.setColorjLabel2();
//            Principal.setarTags(it3, highPrecision, mediumPrecision);
            this.setVisible(false);
            it3.setVisible(true);
        }
        else{
                boolean checkHigh = false;
                boolean checkMedium = false;
                for(int i=0; i < validateHigh.size(); i++){
                    if(validateHigh.get(i) == true){
                        checkHigh = true;
                    }
                }
                    for(int i=0; i < validateMedium.size(); i++){
                        if(validateMedium.get(i) == true){
                            checkMedium = true;
                    }
                }
         if(checkHigh == false && checkMedium == false){
              if(counter == 0){
                counter = icon25.size()-1;
            }
            else{
               counter--; 
            } 
            Interface2 it3 = new Interface2();
            it3.setIcon25(icon25);
            it3.setIcon75(icon75);
//            it3.setValidateHigh(Principal.bl);
//            it3.setValidateMedium(Principal.bl);
            it3.setVality(vality);
            it3.setCounter(counter);
            it3.setIconjLabel4(icon75.get(counter));
            it3.setBefore(before);
            it3.setNext(next);
//            Principal.setarFotos(it3, icon25);
            
            Principal.wordsHigh = new ArrayList<ArrayList<String>>();
            Principal.wordsMedium = new ArrayList<ArrayList<String>>();
            
            Principal.ordenar(highPrecision, mediumPrecision, counter);
//            Principal.setarTags(it3, highPrecision, mediumPrecision);
            Principal.setarWords(highPrecision, mediumPrecision);
            
            highPrecision = new ArrayList<Precision>();
            mediumPrecision = new ArrayList<Precision>();           
            
            this.setVisible(false);
            it3.setVisible(true);
                }
         else if(checkHigh == true || checkMedium == true){
            for(int i=0; i < validateHigh.size(); i++){
                if(validateHigh.get(i) == true){
                    wordsIPTC.add(Principal.wordsHigh.get(0).get(i));
                    validateHigh.set(i, false);
                }
            }
            for(int i=0; i < validateMedium.size(); i++){
                if(validateMedium.get(i) == true){
                    wordsIPTC.add(Principal.wordsMedium.get(0).get(i));
                    validateMedium.set(i, false);
                }
            }
            
            try {
                Principal.photoIPTC.get(counter).addIPTCKeyword(wordsIPTC);
            } catch (ImageReadException ex) {
                Logger.getLogger(Interface2.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                Logger.getLogger(Interface2.class.getName()).log(Level.SEVERE, null, ex);
            } catch (ImageWriteException ex) {
                Logger.getLogger(Interface2.class.getName()).log(Level.SEVERE, null, ex);
            }
            
            wordsIPTC = new ArrayList<String>();
            vality.set(counter, true);
                    try {
                        Principal.fotoValidada(icon25, counter);
                    } catch (IOException ex) {
                        Logger.getLogger(Interface2.class.getName()).log(Level.SEVERE, null, ex);
                    }
            if(counter == 0){
                counter = icon25.size()-1;
            }
            else{
               counter--; 
            } 
            Interface2 it3 = new Interface2();
            it3.setIcon25(icon25);
            it3.setIcon75(icon75);
//            it3.setValidateHigh(Principal.bl);
//            it3.setValidateMedium(Principal.bl);
            it3.setVality(vality);
            it3.setCounter(counter);
            it3.setIconjLabel4(icon75.get(counter));
            it3.setBefore(before);
            it3.setNext(next);
//            Principal.setarFotos(it3, icon25);
            
            Principal.wordsHigh = new ArrayList<ArrayList<String>>();
            Principal.wordsMedium = new ArrayList<ArrayList<String>>();
            
            Principal.ordenar(highPrecision, mediumPrecision, counter);
//            Principal.setarTags(it3, highPrecision, mediumPrecision);
            Principal.setarWords(highPrecision, mediumPrecision);
                        
            highPrecision = new ArrayList<Precision>();
            mediumPrecision = new ArrayList<Precision>();
                    
            this.setVisible(false);
            it3.setVisible(true);
        }
            }           
}
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JToggleButton jToggleButton1;
    private javax.swing.JToggleButton jToggleButton10;
    private javax.swing.JToggleButton jToggleButton11;
    private javax.swing.JToggleButton jToggleButton12;
    private javax.swing.JToggleButton jToggleButton13;
    private javax.swing.JToggleButton jToggleButton14;
    private javax.swing.JToggleButton jToggleButton15;
    private javax.swing.JToggleButton jToggleButton16;
    private javax.swing.JToggleButton jToggleButton17;
    private javax.swing.JToggleButton jToggleButton18;
    private javax.swing.JToggleButton jToggleButton19;
    private javax.swing.JToggleButton jToggleButton2;
    private javax.swing.JToggleButton jToggleButton20;
    private javax.swing.JToggleButton jToggleButton21;
    private javax.swing.JToggleButton jToggleButton22;
    private javax.swing.JToggleButton jToggleButton23;
    private javax.swing.JToggleButton jToggleButton24;
    private javax.swing.JToggleButton jToggleButton25;
    private javax.swing.JToggleButton jToggleButton26;
    private javax.swing.JToggleButton jToggleButton27;
    private javax.swing.JToggleButton jToggleButton28;
    private javax.swing.JToggleButton jToggleButton29;
    private javax.swing.JToggleButton jToggleButton3;
    private javax.swing.JToggleButton jToggleButton30;
    private javax.swing.JToggleButton jToggleButton31;
    private javax.swing.JToggleButton jToggleButton32;
    private javax.swing.JToggleButton jToggleButton33;
    private javax.swing.JToggleButton jToggleButton34;
    private javax.swing.JToggleButton jToggleButton35;
    private javax.swing.JToggleButton jToggleButton36;
    private javax.swing.JToggleButton jToggleButton37;
    private javax.swing.JToggleButton jToggleButton38;
    private javax.swing.JToggleButton jToggleButton39;
    private javax.swing.JToggleButton jToggleButton4;
    private javax.swing.JToggleButton jToggleButton40;
    private javax.swing.JToggleButton jToggleButton5;
    private javax.swing.JToggleButton jToggleButton6;
    private javax.swing.JToggleButton jToggleButton7;
    private javax.swing.JToggleButton jToggleButton8;
    private javax.swing.JToggleButton jToggleButton9;
    // End of variables declaration//GEN-END:variables

    private static ArrayList<ImageIcon> icon25 = new ArrayList<ImageIcon>();
    private static ArrayList<ImageIcon> icon75 = new ArrayList<ImageIcon>();
    private static ArrayList<String> wordsIPTC = new ArrayList<String>();
    private static ArrayList<Boolean> validateHigh = new ArrayList<Boolean>();
    private static ArrayList<Boolean> validateMedium = new ArrayList<Boolean>();
    private static ArrayList<Boolean> vality = new ArrayList<Boolean>();
    private static ArrayList<Precision> highPrecision = new ArrayList<Precision>();
    private static ArrayList<Precision> mediumPrecision = new ArrayList<Precision>();
    private int counter;
    private boolean next = false;
    private boolean before = false;

    public void setBefore(boolean before) {
        this.before = before;
    }

    public void setNext(boolean next) {
        this.next = next;
    }

    public void setVality(ArrayList<Boolean> vality) {
        Interface2.vality = vality;
    }

    public void setTextjLabel2() {
        this.jLabel2.setText("Esta foto já foi validada");
    }
    
    public void setColorjLabel2() {
        this.jLabel2.setForeground(Color.GREEN);
    }

    public void invjLabel3() {
        this.jLabel3.setVisible(false);
    }

    public void addjPanel6(JLabel jlabel, GridBagConstraints gbc) {
        this.jPanel6.add(jlabel, gbc);
    }

    public void setValidateHigh(ArrayList<Boolean> validateHigh) {
        Interface2.validateHigh = validateHigh;
    }

    public void setValidateMedium(ArrayList<Boolean> validateMedium) {
        Interface2.validateMedium = validateMedium;
    }

    public void setCounter(int counter) {
        this.counter = counter;
    }

    public void setIcon75(ArrayList<ImageIcon> icon75) {
        Interface2.icon75 = icon75;
    }

    public void setIcon25(ArrayList<ImageIcon> icon25) {
        this.icon25 = icon25;
    }
    
    public void setIconjLabel4(ImageIcon jLabel4) {
        this.jLabel4.setIcon(jLabel4);
    }
    
    public void setIconjLabel5(ImageIcon jLabel4) {
        this.jLabel5.setIcon(jLabel4);
    }
    
    public void setIconjLabel6(ImageIcon jLabel4) {
        this.jLabel6.setIcon(jLabel4);
    }
    
    public void setIconjLabel7(ImageIcon jLabel4) {
        this.jLabel7.setIcon(jLabel4);
    }
    
    public void setIconjLabel8(ImageIcon jLabel4) {
        this.jLabel8.setIcon(jLabel4);
    }
    
    public void setIconjLabel9(ImageIcon jLabel4) {
        this.jLabel9.setIcon(jLabel4);
    }
    
    public void setIconjLabel10(ImageIcon jLabel4) {
        this.jLabel10.setIcon(jLabel4);
    }
    
    public void setIconjLabel11(ImageIcon jLabel4) {
        this.jLabel11.setIcon(jLabel4);
    }
    
    public void setIconjLabel12(ImageIcon jLabel4) {
        this.jLabel12.setIcon(jLabel4);
    }
    
    public void setIconjLabel13(ImageIcon jLabel4) {
        this.jLabel13.setIcon(jLabel4);
    }
    
    public void setIconjLabel14(ImageIcon jLabel4) {
        this.jLabel14.setIcon(jLabel4);
    }
    
    public void setIconjLabel15(ImageIcon jLabel4) {
        this.jLabel15.setIcon(jLabel4);
    }
    
    public void setIconjLabel16(ImageIcon jLabel4) {
        this.jLabel16.setIcon(jLabel4);
    }
    
    public void setIconjLabel17(ImageIcon jLabel4) {
        this.jLabel17.setIcon(jLabel4);
    }
    
    public void setIconjLabel18(ImageIcon jLabel4) {
        this.jLabel18.setIcon(jLabel4);
    }
    
    public void setIconjLabel19(ImageIcon jLabel4) {
        this.jLabel19.setIcon(jLabel4);
    }
    
    public void setIconjLabel20(ImageIcon jLabel4) {
        this.jLabel20.setIcon(jLabel4);
    }

    public void setjToggleButton1(String jToggleButton1) {
        this.jToggleButton1.setText(jToggleButton1);
    }

    public void setjToggleButton2(String jToggleButton1) {
        this.jToggleButton2.setText(jToggleButton1);
    }
    
    public void setjToggleButton3(String jToggleButton1) {
        this.jToggleButton3.setText(jToggleButton1);
    }
    
    public void setjToggleButton4(String jToggleButton1) {
        this.jToggleButton4.setText(jToggleButton1);
    }
    
    public void setjToggleButton5(String jToggleButton1) {
        this.jToggleButton5.setText(jToggleButton1);
    }
    
    public void setjToggleButton6(String jToggleButton1) {
        this.jToggleButton6.setText(jToggleButton1);
    }
    
    public void setjToggleButton7(String jToggleButton1) {
        this.jToggleButton7.setText(jToggleButton1);
    }
    
    public void setjToggleButton8(String jToggleButton1) {
        this.jToggleButton8.setText(jToggleButton1);
    }
    
    public void setjToggleButton9(String jToggleButton1) {
        this.jToggleButton9.setText(jToggleButton1);
    }
    
    public void setjToggleButton10(String jToggleButton1) {
        this.jToggleButton10.setText(jToggleButton1);
    }

    public void invjToggleButton1() {
        this.jToggleButton1.setVisible(false);
    }
    
    public void invjToggleButton2() {
        this.jToggleButton2.setVisible(false);
    }
    
    public void invjToggleButton3() {
        this.jToggleButton3.setVisible(false);
    }
    
    public void invjToggleButton4() {
        this.jToggleButton4.setVisible(false);
    }
    
    public void invjToggleButton5() {
        this.jToggleButton5.setVisible(false);
    }
    
    public void invjToggleButton6() {
        this.jToggleButton6.setVisible(false);
    }
    
    public void invjToggleButton7() {
        this.jToggleButton7.setVisible(false);
    }
    
    public void invjToggleButton8() {
        this.jToggleButton8.setVisible(false);
    }
    
    public void invjToggleButton9() {
        this.jToggleButton9.setVisible(false);
    }
    
    public void invjToggleButton10() {
        this.jToggleButton10.setVisible(false);
    }
    
    public void setjToggleButton11(String jToggleButton11) {
        this.jToggleButton11.setText(jToggleButton11);
    }

    public void setjToggleButton12(String jToggleButton11) {
        this.jToggleButton12.setText(jToggleButton11);
    }
    
    public void setjToggleButton13(String jToggleButton11) {
        this.jToggleButton13.setText(jToggleButton11);
    }
    
    public void setjToggleButton14(String jToggleButton11) {
        this.jToggleButton14.setText(jToggleButton11);
    }
    
    public void setjToggleButton15(String jToggleButton11) {
        this.jToggleButton15.setText(jToggleButton11);
    }
    
    public void setjToggleButton16(String jToggleButton11) {
        this.jToggleButton16.setText(jToggleButton11);
    }
    
    public void setjToggleButton17(String jToggleButton11) {
        this.jToggleButton17.setText(jToggleButton11);
    }
    
    public void setjToggleButton18(String jToggleButton11) {
        this.jToggleButton18.setText(jToggleButton11);
    }
    
    public void setjToggleButton19(String jToggleButton11) {
        this.jToggleButton19.setText(jToggleButton11);
    }
    
    public void setjToggleButton20(String jToggleButton11) {
        this.jToggleButton20.setText(jToggleButton11);
    }

    public void invjToggleButton11() {
        this.jToggleButton11.setVisible(false);
    }
    
    public void invjToggleButton12() {
        this.jToggleButton12.setVisible(false);
    }
    
    public void invjToggleButton13() {
        this.jToggleButton13.setVisible(false);
    }
    
    public void invjToggleButton14() {
        this.jToggleButton14.setVisible(false);
    }
    
    public void invjToggleButton15() {
        this.jToggleButton15.setVisible(false);
    }
    
    public void invjToggleButton16() {
        this.jToggleButton16.setVisible(false);
    }
    
    public void invjToggleButton17() {
        this.jToggleButton17.setVisible(false);
    }
    
    public void invjToggleButton18() {
        this.jToggleButton18.setVisible(false);
    }
    
    public void invjToggleButton19() {
        this.jToggleButton19.setVisible(false);
    }
    
    public void invjToggleButton20() {
        this.jToggleButton20.setVisible(false);
    }
    
    public void setjToggleButton21(String jToggleButton21) {
        this.jToggleButton21.setText(jToggleButton21);
    }

    public void setjToggleButton22(String jToggleButton21) {
        this.jToggleButton22.setText(jToggleButton21);
    }
    
    public void setjToggleButton23(String jToggleButton21) {
        this.jToggleButton23.setText(jToggleButton21);
    }
    
    public void setjToggleButton24(String jToggleButton21) {
        this.jToggleButton24.setText(jToggleButton21);
    }
    
    public void setjToggleButton25(String jToggleButton21) {
        this.jToggleButton25.setText(jToggleButton21);
    }
    
    public void setjToggleButton26(String jToggleButton21) {
        this.jToggleButton26.setText(jToggleButton21);
    }
    
    public void setjToggleButton27(String jToggleButton21) {
        this.jToggleButton27.setText(jToggleButton21);
    }
    
    public void setjToggleButton28(String jToggleButton21) {
        this.jToggleButton28.setText(jToggleButton21);
    }
    
    public void setjToggleButton29(String jToggleButton21) {
        this.jToggleButton29.setText(jToggleButton21);
    }
    
    public void setjToggleButton30(String jToggleButton21) {
        this.jToggleButton30.setText(jToggleButton21);
    }

    public void invjToggleButton21() {
        this.jToggleButton21.setVisible(false);
    }
    
    public void invjToggleButton22() {
        this.jToggleButton22.setVisible(false);
    }
    
    public void invjToggleButton23() {
        this.jToggleButton23.setVisible(false);
    }
    
    public void invjToggleButton24() {
        this.jToggleButton24.setVisible(false);
    }
    
    public void invjToggleButton25() {
        this.jToggleButton25.setVisible(false);
    }
    
    public void invjToggleButton26() {
        this.jToggleButton26.setVisible(false);
    }
    
    public void invjToggleButton27() {
        this.jToggleButton27.setVisible(false);
    }
    
    public void invjToggleButton28() {
        this.jToggleButton28.setVisible(false);
    }
    
    public void invjToggleButton29() {
        this.jToggleButton29.setVisible(false);
    }
    
    public void invjToggleButton30() {
        this.jToggleButton30.setVisible(false);
    }
    
    public void setjToggleButton31(String jToggleButton31) {
        this.jToggleButton31.setText(jToggleButton31);
    }

    public void setjToggleButton32(String jToggleButton31) {
        this.jToggleButton32.setText(jToggleButton31);
    }
    
    public void setjToggleButton33(String jToggleButton31) {
        this.jToggleButton33.setText(jToggleButton31);
    }
    
    public void setjToggleButton34(String jToggleButton31) {
        this.jToggleButton34.setText(jToggleButton31);
    }
    
    public void setjToggleButton35(String jToggleButton31) {
        this.jToggleButton35.setText(jToggleButton31);
    }
    
    public void setjToggleButton36(String jToggleButton31) {
        this.jToggleButton36.setText(jToggleButton31);
    }
    
    public void setjToggleButton37(String jToggleButton31) {
        this.jToggleButton37.setText(jToggleButton31);
    }
    
    public void setjToggleButton38(String jToggleButton31) {
        this.jToggleButton38.setText(jToggleButton31);
    }
    
    public void setjToggleButton39(String jToggleButton31) {
        this.jToggleButton39.setText(jToggleButton31);
    }
    
    public void setjToggleButton40(String jToggleButton31) {
        this.jToggleButton40.setText(jToggleButton31);
    }

    public void invjToggleButton31() {
        this.jToggleButton31.setVisible(false);
    }
    
    public void invjToggleButton32() {
        this.jToggleButton32.setVisible(false);
    }
    
    public void invjToggleButton33() {
        this.jToggleButton33.setVisible(false);
    }
    
    public void invjToggleButton34() {
        this.jToggleButton34.setVisible(false);
    }
    
    public void invjToggleButton35() {
        this.jToggleButton35.setVisible(false);
    }
    
    public void invjToggleButton36() {
        this.jToggleButton36.setVisible(false);
    }
    
    public void invjToggleButton37() {
        this.jToggleButton37.setVisible(false);
    }
    
    public void invjToggleButton38() {
        this.jToggleButton38.setVisible(false);
    }
    
    public void invjToggleButton39() {
        this.jToggleButton39.setVisible(false);
    }
    
    public void invjToggleButton40() {
        this.jToggleButton40.setVisible(false);
    }
}
